package com.soft.collateral.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel("出库申请明细表")
@TableName("withdraw_apply_detail")
@NoArgsConstructor
@AllArgsConstructor
public class WithdrawApplyDetail {
    @TableId(value = "detail_id", type = IdType.AUTO)
    @ApiModelProperty("明细ID")
    private Integer detailId;

    @TableField("apply_id")
    @ApiModelProperty("申请ID")
    private Integer applyId;

    @TableField("collateral_id")
    @ApiModelProperty("押品ID")
    private Integer collateralId;

    @TableField("related_storage_id")
    @ApiModelProperty("关联入库单ID(置换出库)")
    private Integer relatedStorageId;

    @TableField(exist = false)
    @ApiModelProperty("关联的押品信息")
    private Collateral collateral;
}